package com.lora.communication;


import com.lora.communication.start.MqttStart;

import com.lora.util.ApplicationUtil;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Async;

@Configuration
public class ConnectStart implements CommandLineRunner {

    @Async("executor")
    @Override
    public void run(String... strings) throws Exception {
        MqttStart mqttStart= ApplicationUtil.getBean(MqttStart.class);
        mqttStart.run();
        }

}
